package com.yuxi.controller.manager;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import com.yuxi.pubInter.exception.SkException;
import com.yuxi.pubInter.IBaseService;
import com.yuxi.pubInter.RestfulController;
import com.yuxi.dto.PermissionGroupDTO;
import com.yuxi.dto.PermissionGroupPageDTO;
import com.yuxi.modelExt.PermissionGroupExt;
import com.yuxi.searchExt.PermissionGroupSearchExt;
import com.yuxi.service.IPermissionGroupService;
import com.yuxi.vo.PermissionGroupDetailVO;
import com.yuxi.vo.PermissionGroupListVO;
import com.yuxi.vo.PermissionGroupDomainVO;
import com.yuxi.vo.PermissionGroupDetailDomainVO;
import org.springframework.validation.annotation.Validated;
import java.util.Set;
import java.util.HashSet;
import com.yuxi.pubInter.exception.BusinessException;

/**
*    @author sunke
*    @Date 2023-10-13 10:28:19
*    @description PermissionGroupController      权限组
*/
@Api(tags = "后台管理系统-权限组相关", description = "权限组相关接口")
@RestController(value ="permissionGroupRestfulController")
@RequestMapping("/manager/permissionGroup/")
@Validated
public class PermissionGroupController extends ApiManageController<PermissionGroupDTO,PermissionGroupPageDTO,PermissionGroupExt, PermissionGroupSearchExt,PermissionGroupDomainVO,PermissionGroupDetailDomainVO,PermissionGroupDetailVO,PermissionGroupListVO,String> {

	@Resource(name = "permissionGroupService")
	private IPermissionGroupService permissionGroupService;



	@Override
	public IBaseService<PermissionGroupExt, PermissionGroupSearchExt,String> getBaseService() throws SkException {
		return permissionGroupService;
	}

	@Override
	public String getBaseRoute() {
		return "/manager/permissionGroup/";
	}

	/**
	* 当前模板名称
	* @return
	*/
	@Override
	public String getModelName(){
		return "权限组";
	}



	@Override
	public Set<String> totalMapSet() {
		Set totalMapSet=new HashSet();
		totalMapSet.add("count(permission_group.pg_id) as countNum");
		return totalMapSet;
	}


}